Skip to content

App name: internal names neutral, literal ones held by a test - #1907

Open
vmillet-dev wants to merge 3 commits into
app-name-codefrom
app-name-neutral
Open

vmillet-dev wants to merge 3 commits into
app-name-codefrom
app-name-neutral

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Part of #1896: steps 5, 6 and 9. The last pull request of the ticket closes it.

Stacked on #1905 (the names in the code and on the disk): its base is app-name-code, so this diff is these steps alone. Merge #1898, #1900, #1901, #1902, #1903, #1904, #1905 in that order; this pull request then targets dev/1.3.3.

Four commits; the rename of DevNotesApp is one of its own, as the ticket asks.

Step 5, the internal names made neutral. Nobody outside the process reads these names:

  • --devnotes-script-host becomes --script-host;
  • the prelude's __devnotes becomes __prelude;
  • the devnotes-network thread becomes network;
  • an in-memory library's folder is in-memory-library-….

The DEVNOTES_* variables of the tests, the examples and the CI stay as they are: the owner's choice, recorded in #1904.

Step 6, the literal names held by a test. crates/app/tests/names.rs checks these names against the values:

  • the binary, the packager's product-name, identifier and binaries;
  • the deb's package-name and files, the rpm's name and every asset path (written {slug} in the test);
  • Exec=, Icon= and Name= of packaging/<slug>.desktop, Upstream-Name of copyright, and icons/<slug>.svg.

Change a value without editing these files and it fails. I checked that by leaving one rpm path on another name: red. CARGO_BIN_EXE_devnotes is held by the compiler itself: it does not build once the binary is renamed. The repository URLs (homepage, copyright's contact) are not one of the values: they move with the GitHub repository (step 12).

Step 9, tests, comments, descriptions

  • DevNotesApp is now App: a mechanical commit, which also covers the wiki and the egui skill.
  • Fixtures that need the application's name read the values:
    • the database file (gate/tests.rs, backups.rs, the reference bench, the e2e SDK);
    • preference keys (e2e prefs.rs);
    • the welcome note's title (captures, e2e notes.rs);
    • « About … » and « Quitter … » (e2e help.rs, docs_quotes);
    • the documentation's addresses (docs_tests.rs);
    • the e2e binary's path;
    • journey 11's file names, under the configured extension;
    • the logging test's crate name (CARGO_CRATE_NAME).
  • Drawing addresses are built from DRAWING_SOURCE:
    • richtext's picture tests;
    • the rich widget's tests: shown, painted and embedding take &str, and a new embedded(id) helper builds the markdown;
    • the editor's tests: {source} in their fixtures;
    • the parity and capture tests.
  • Fixtures that only needed a word take a neutral one:
    • example.org and example.invalid for links and unreachable hosts;
    • *.archive for files picked in a dialog;
    • seed and hello for the identity and QR seeds;
    • Notebook and MyNotes for the QR and expect strings, same length and same case behaviour;
    • notes for the language corpus, whose detections are unchanged;
    • app for the shortcuts' paths;
    • script-libraries for the sandbox package's name.
  • The tools' samples read the values, so the screen stays as it is today: the Diff tool's server block ({host} and {slug}), its YAML/JSON pair ({name} and {slug}) and the identity tool's seed (the slug). That keeps the README's tools GIF and the site's scene true; a rename changes them with everything else.
  • Comments, descriptions and journey steps say « the application », or <slug>/<binary> where they spell a key, an address or a command. DevNotes is gone from doc-valid-idents in the three clippy.toml, so a doc comment that types it no longer passes clippy.

Wiki. The overview's section « The application's names » now lists the names kept literal and the test that holds them, and the neutral internal names. The script host's argument is updated in engine.md, environments-and-scripts.md and CLAUDE.md, and the thread name in logs.md.

Sweep, at this point (throwaway, grep -rniE devnotes crates e2e golden clippy.toml, DEVNOTES_ set aside). What remains is the literal names of step 6, which the new test holds, and the repository URLs. The packages and the CI (step 7) and the documentation and the site (step 8) come in the next two pull requests.

Checks run (Linux)

  • cargo fmt --all --check, cargo clippy --workspace --all-targets --all-features -- -D warnings.
  • cargo test --workspace --exclude e2e --no-fail-fast: every crate green, the new names test included.
  • node scripts/architecture-links.mjs.
  • E2E (--features e2e, Xvfb + openbox): the fourteen journeys pass, cargo test -p e2e --no-fail-fast. The e2e flavour was then rebuilt on the final code, and 08_tools (which opens the Diff tool's sample) passed again. The terminal stays quiet: no log line, only the journeys' steps.

Generated by Claude Code

The names nobody outside the process reads carry no name: the script
host's argument is `--script-host`, the prelude's entry points
`__prelude`, the network thread `network`, an in-memory library's
folder `in-memory-library-…`. The `DEVNOTES_` variables stay, the
owner's choice.

The names Cargo and the file system keep literal (the binary, the
packager's, the deb's and the rpm's names and paths, the desktop entry,
the copyright, the master icon) are held by `crates/app/tests/names.rs`:
it fails while one differs from the values.

Part of #1896 (steps 5, 6)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
Mechanical: the type, its uses, the wiki and the egui skill, then
`cargo fmt`. Nothing else changes.

Part of #1896 (step 9)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
Fixtures that need the application's name read the values: the
database file, the preference keys, the welcome note's title, « About »
and « Quitter », the documentation's addresses, the e2e binary, journey
11's files under the configured extension, the logging test's crate.
Drawing addresses are built from `DRAWING_SOURCE`.

Fixtures that only needed a word take a neutral one (`example.org`,
`*.archive`, `seed`, `Notebook`, `notes`, `app`); the tools' samples
read the values, so the screens, the README's tools tour and the site's
scene stay as they are.

Comments, crate descriptions and journey steps say « the application »,
or `<slug>`/`<binary>` where they spell a key, an address or a command.
`DevNotes` leaves `doc-valid-idents`: a doc comment typing it no longer
passes clippy.

Part of #1896 (step 9)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
@vmillet-dev vmillet-dev added the refactor Restructuring without behaviour change label Dec 4, 2026 — with Claude

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants